﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EF9 RID: 3833
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueHandbookMazeBuff : IMessage<RogueHandbookMazeBuff>, IMessage, IEquatable<RogueHandbookMazeBuff>, IDeepCloneable<RogueHandbookMazeBuff>, IBufferMessage
	{
		// Token: 0x170030B8 RID: 12472
		// (get) Token: 0x0600ABF8 RID: 44024 RVA: 0x001D1788 File Offset: 0x001CF988
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueHandbookMazeBuff> Parser
		{
			get
			{
				return RogueHandbookMazeBuff._parser;
			}
		}

		// Token: 0x170030B9 RID: 12473
		// (get) Token: 0x0600ABF9 RID: 44025 RVA: 0x001D178F File Offset: 0x001CF98F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueHandbookMazeBuffReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170030BA RID: 12474
		// (get) Token: 0x0600ABFA RID: 44026 RVA: 0x001D17A1 File Offset: 0x001CF9A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueHandbookMazeBuff.Descriptor;
			}
		}

		// Token: 0x0600ABFB RID: 44027 RVA: 0x001D17A8 File Offset: 0x001CF9A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueHandbookMazeBuff()
		{
		}

		// Token: 0x0600ABFC RID: 44028 RVA: 0x001D17B0 File Offset: 0x001CF9B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueHandbookMazeBuff(RogueHandbookMazeBuff other) : this()
		{
			this.mazeBuffId_ = other.mazeBuffId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600ABFD RID: 44029 RVA: 0x001D17D5 File Offset: 0x001CF9D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueHandbookMazeBuff Clone()
		{
			return new RogueHandbookMazeBuff(this);
		}

		// Token: 0x170030BB RID: 12475
		// (get) Token: 0x0600ABFE RID: 44030 RVA: 0x001D17DD File Offset: 0x001CF9DD
		// (set) Token: 0x0600ABFF RID: 44031 RVA: 0x001D17E5 File Offset: 0x001CF9E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MazeBuffId
		{
			get
			{
				return this.mazeBuffId_;
			}
			set
			{
				this.mazeBuffId_ = value;
			}
		}

		// Token: 0x0600AC00 RID: 44032 RVA: 0x001D17EE File Offset: 0x001CF9EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueHandbookMazeBuff);
		}

		// Token: 0x0600AC01 RID: 44033 RVA: 0x001D17FC File Offset: 0x001CF9FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueHandbookMazeBuff other)
		{
			return other != null && (other == this || (this.MazeBuffId == other.MazeBuffId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AC02 RID: 44034 RVA: 0x001D182C File Offset: 0x001CFA2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MazeBuffId != 0U)
			{
				num ^= this.MazeBuffId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AC03 RID: 44035 RVA: 0x001D186B File Offset: 0x001CFA6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AC04 RID: 44036 RVA: 0x001D1873 File Offset: 0x001CFA73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AC05 RID: 44037 RVA: 0x001D187C File Offset: 0x001CFA7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MazeBuffId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.MazeBuffId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AC06 RID: 44038 RVA: 0x001D18B0 File Offset: 0x001CFAB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MazeBuffId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MazeBuffId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AC07 RID: 44039 RVA: 0x001D18EE File Offset: 0x001CFAEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueHandbookMazeBuff other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MazeBuffId != 0U)
			{
				this.MazeBuffId = other.MazeBuffId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AC08 RID: 44040 RVA: 0x001D191F File Offset: 0x001CFB1F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AC09 RID: 44041 RVA: 0x001D1928 File Offset: 0x001CFB28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.MazeBuffId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040045DC RID: 17884
		private static readonly MessageParser<RogueHandbookMazeBuff> _parser = new MessageParser<RogueHandbookMazeBuff>(() => new RogueHandbookMazeBuff());

		// Token: 0x040045DD RID: 17885
		private UnknownFieldSet _unknownFields;

		// Token: 0x040045DE RID: 17886
		public const int MazeBuffIdFieldNumber = 5;

		// Token: 0x040045DF RID: 17887
		private uint mazeBuffId_;
	}
}
